Fix restore of saved image containing rtc_timeoffset
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 26 Feb 2008 14:35:39 +0000 (14:35 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 26 Feb 2008 14:35:39 +0000 (14:35 +0000)
commite516decc8c8979c6f95856f5d8b349f186e53573
tree1ad926347947415380ee51a1e6c0880f6022324a
parent6184985ce7187d09f08c558480c428b0118f405d
Fix restore of saved image containing rtc_timeoffset

Saved images contain rtc_timeoffset as a string value, resulting in a
TypeError exception when calling xc.domain_set_time_offset() on
restore.  Cast rtc_timeoffset to int before calling
xc.domain_set_time_offset().

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/image.py